﻿<%template _header%>
<%namespace YouHP.Model%>
<%namespace YouHP.Model.Group%>
<%namespace YouHP.Utility%>
<%namespace YouHP.BLL%>

<style type="text/css" media="screen">  
     .caption
     {
     	color:#777777;
        font: bold 8px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; 
        padding: 4px 6px 4px 2px; 
     }
     
     .score
     {
     	color:#777777;
        padding: 4px 6px 4px 2px; 
        font: bold;
     }
</style> 

<div class="layout-cols2">
	<div class="col1">		
<%csharp%>TempUrl = ModuleCtrl.Header4("DoctorList","中药方排行榜",false,false); <%/csharp%>
{TempUrl}

				<%csharp%> if(_doctorInfoList.Count == 0){ <%/csharp%>

				   <div class="content">
				<p><b>找不到相应的中药方!!</b></p>
				</div>

				<%csharp%> } else { <%/csharp%>
				<table border="0" cellpadding="0" cellspacing="0" class="plist">
	                   <tr style="height:30px;"> 
                            <td width="20%" height="26"><b class="tdtitle">医院</b></td>
                            <td width="20%"><b class="tdtitle">医生名字</b></td>
                            <td width="20%"><b class="tdtitle">开具中药方数</b></td>
                            <td width="20%"><b class="tdtitle">药方平均网友评分</b></td>
                            <td width="20%"><b class="tdtitle"></b></td>
                        </tr>
				<%csharp%>
				string str="tr_bgcolor_0";
				foreach(DoctorInfo item in _doctorInfoList) { <%/csharp%>
					<tbody><tr height="60" class="{str}">
						<td class="caption">{item.Hospital}</td>
						<td class="caption">
						    {item.Name}
						    <%csharp%>if (DoctorBLL.Instance.hasClassicPrescription(item.Id)) { <%/csharp%>
						        <img src="/support/alpha/images/star.gif" height="16" width="16" alt="该药方已被管理员设置为经典药方"/>
						    <%csharp%>}<%/csharp%>
						</td>
						<td class="score">{item.PrescriptionCount}</td>
						<td class="score">{item.PrescriptionAverageScore}</td>
						
						<%csharp%>TempUrl = "/Doctor.aspx?doctorid=" + item.Id; <%/csharp%>
						<td><a href="{this.GetUrl(TempUrl)}" class="viewdetail1"><font color=Green>查看具体方剂</font></a></td>
						
					</tr></tbody>
					<%csharp%>
					if(str=="tr_bgcolor_0") str="tr_bgcolor_1";
					else str="tr_bgcolor_0";
					}<%/csharp%>
				</table>				
				<%csharp%> } <%/csharp%>
<%csharp%>TempUrl = ModuleCtrl.Footer("DoctorList"); <%/csharp%>
{TempUrl}
	
			
		<div class="box">
			<div class="content">
				<div class="pages">
					{_pagingString}
				</div>
			</div>
		</div>
		
		<div style="margin:5px 2px 5px 5px">
		    <img src="/support/alpha/images/star.gif" height="16" width="16"/> <font color="blue">表示该医生开具的药方中含经典药方</font>
		</div>
		
	</div>
	
	<div class="col2">
	</div>
		
</div>

<%template _footer%>			